﻿using PetaPoco;
using PmSoft;
using PmSoft.Caching;
using System.ComponentModel;

namespace Modules
{
    /// <summary>
    /// 账户支出明细详情
    ///</summary>
    [TableName("project_guarantee_expenditure_detail")]
    [Description("项目保证金支出明细")]
    [PrimaryKey("id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class ProjectGuaranteeExpenditureDetail : IEntity
    {
        /// <summary>
        ///
        ///</summary>
        [Column("id")]
        public int Id { get; set; }

        /// <summary>
        /// 项目Id
        ///</summary>
        [Column("guarantee_expenditure_id")]
        public int? GuaranteeExpenditureId { get; set; }

        /// <summary>
        /// 身份证号
        ///</summary>
        [Column("card_no")]
        public string CardNo { get; set; }

        /// <summary>
        /// 务工人员姓名
        ///</summary>
        [Column("user_name")]
        public string UserName { get; set; }

        /// <summary>
        /// 工资支付方式(100：现金 101：银行卡 102：社会保障卡 103：其他)
        ///</summary>
        [Column("pay_type")]
        public string PayType { get; set; }

        /// <summary>
        /// 工资支付金额
        ///</summary>
        [Column("amount")]
        public decimal? Amount { get; set; }

        #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return this.Id; } }

        #endregion IEntity 成员
    }
}